import request from '@/utils/request';
/**
 * @description 获取公告
 * @param {Object} data
 * {}
 */
export function getNotice(data) {
  return request({
    url: '/IndexRest/getIndexNotice',
    method: 'post',
    data
  });
}
/**
 * @description 访客 订单量 销量 上架数量
 * @param {Object} data
 * {shopId: }
 */
export function getShopData(data) {
  return request({
    url: '/IndexRest/getShopData',
    method: 'post',
    data
  });
}
/**
 * @description 订单数据
 * @param {Object} data
 * {shopId: }
 */
export function getShopOrder(data) {
  return request({
    url: '/IndexRest/getShopOrder',
    method: 'post',
    data
  });
}
/**
 * @description 统计
 * @param {Object} data
 * {shopId: '',day: '7'}
 */
export function getSalesData(data) {
  return request({
    url: '/IndexRest/getSalesData',
    method: 'post',
    data
  });
}
/**
 * @description 销售排行
 * @param {Object} data
 * {shopId: '',day: '7'}
 */
export function getMdseSalesData(data) {
  return request({
    url: '/IndexRest/getMdseSalesData',
    method: 'post',
    data
  });
}
/**
 * @description 登录页面的广告
 * @param {Object} data
 * {}
 */
export function getLoginAd(data) {
  return request({
    url: '/IndexRest/getAttAdvertisement',
    method: 'post',
    data
  });
}
/**
 * @description 获取销售额统计数据
 * @param {Object} data
 * {shopId: '',day: '7'}
 */
export function getSalesVolumeData(data) {
  return request({
    url: '/IndexRest/getSalesVolumeData',
    method: 'post',
    data
  });
}
/**
 * @description 获取订单商品数量统计 销售件数、成交件数
 * @param {Object} data
 * {shopId: '',day: '7'}
 */
export function getOderPurchaseData(data) {
  return request({
    url: '/IndexRest/getOderMdseData',
    method: 'post',
    data
  });
}
/**
 * @description 访问量统计
 * @param {Object} data
 * {shopId: '',day: '7'}
 */
export function getVisitData(data) {
  return request({
    url: '/IndexRest/getVisitData',
    method: 'post',
    data
  });
}
